﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SCRUM.Core.DataProviders;
using SCRUM.Core.BusinessObjects;
using System.Web.UI.DataVisualization.Charting;

namespace SCRUM.Core.DAO
{
    /// <summary>
    /// Static object for handling charts 
    /// </summary>
    public static class DAOBurndownchart
    {
        private static string[] chartTypes = {"Burndownchart for sprint", "user"};

        public static string[] GetChartTypes()
        {
            return chartTypes;
        }

        /// <summary>
        /// Gets the progress for sprint.
        /// </summary>
        /// <param name="sprintID">The sprint ID.</param>
        /// <returns></returns>
        public static IList<DailyWorkProgress> GetProgressForSprint(int sprintID)
        {
            return DataProviders.ProviderFactory.Provider.GetProgressForSprint(sprintID);
        }
    }
}
